number = int(input())
while number > 0:
    number = number-1
    s = input().split()
    s[1] = int(s[1])+1
    two = int(s[2])+int(s[2])*0.2
    if two > 600:
        two = 600
        print(s[0],s[1],two)
